//
//  WWAppliersModel.m
//  快医
//
//  Created by 孙博 on 16/7/7.
//
//

#import "WWAppliersModel.h"

@implementation WWAppliersModel

+ (instancetype)modelWithDict:(NSDictionary *)dict{
    
    WWAppliersModel *model = [WWAppliersModel new];
    
    [model setValuesForKeysWithDictionary:dict];
    
    return model;
}

+ (NSArray<WWAppliersModel *> *)getAppliersModel{
    
    NSString *path = [[NSBundle mainBundle]pathForResource:@"ApplyDoctor.plist" ofType:nil];
    
    NSArray *arr = [NSArray arrayWithContentsOfFile:path];
    
    NSMutableArray *mArr = [NSMutableArray array];
    
    [arr enumerateObjectsUsingBlock:^(id  _Nonnull obj, NSUInteger idx, BOOL * _Nonnull stop) {
        WWAppliersModel *model = [WWAppliersModel modelWithDict:obj];
        
        [mArr addObject:model];
    }];
    
    return mArr.copy;
}

- (NSString *)description{
    
    return [NSString stringWithFormat:@"%@,%@,%d,%@",[super description],self.name,self.status,self.illness];
}

@end
